﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUEnterPriseSpaceLeftBook.ascx.cs"
    Inherits="NJL.WebUsers.Controls.WUEnterPriseSpaceLeftBook" %>
<%--<%
    if (UserId == "" || UserName == "")
    {
%>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        //示例9，综合效果
        var dingpiao = new PopupLayer({ trigger: "#opendingpiao", popupBlk: "#blk9dingpiao", closeBtn: "#close9dingpiao", useOverlay: true, useFx: true,
            offsets: {
                x: 0,
                y: -41
            }
        });
        dingpiao.doEffects = function (way) {
            if (way == "open") {
                this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                    this.popupLayer.animate({
                        left: ($(document).width() - this.popupLayer.width()) / 2,
                        top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                        opacity: 0.8
                    }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                } .binding(this));
                document.getElementById('Logindingpiao').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
            }
            else {
                this.popupLayer.animate({
                    left: this.trigger.offset().left,
                    top: this.trigger.offset().top,
                    opacity: 0.1
                }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
            }
        }

    });
</script>
<div id="blk9dingpiao" class="blk">
    <div class="popup_title">
        <span class="float_r"><a href="javascript:void(0)" id="close9dingpiao">关闭</a></span>
        <ul>
            <li class="now"><a target="main">登录</a> </li>
        </ul>
    </div>
    <div>
        <iframe id="Logindingpiao" name="main" width="500" height="420" style="overflow: hidden;
            border: none;"></iframe>
    </div>
</div>
<%} %>--%>
<script type="text/javascript">
    var collection = function (collectionId) {
        $.ajax({
            type: 'get',
            url: '/Handle/Handler.ashx',
            data: 'collection=' + collectionId + '&collType=1&Random=' + Math.random(),
            dataType: 'text',
            success: function (msg) {
                if (msg == "NoSession") {
                    alert("请登录后再操作");
                    window.location.href = '/Login.aspx?url=' + document.location.href;
                }
                else if (msg == "False") {
                    alert("您已经关注过");
                }
                else {
                    alert(" 关注成功啦，您是我们这儿第 " + msg + " 关注者，有时间就过来坐坐吧。点确定继续参观~");
                }

            },
            error: function () {
                alert("评论失败");
            }
        })
    }
</script>
<div class="leftBor">
    <h2>
        预订信息</h2>
    <div>
        <table class="tab" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <th>
                    类型
                </th>
                <th>
                    门市价
                </th>
                <th>
                    本店价
                </th>
                <th>
                    支付方式
                </th>
            </tr>
            <%
    for (int i = 0; i < LIST_BOOK.Count; i++)
    {
            %>
            <tr>
                <td>
                    <a href='/CompanyOrder.aspx?id=<%=Request.QueryString["id"] %>&bid=<%=LIST_BOOK[i].ID %>'
                        style='color: #195CB5' title='<%=LIST_BOOK[i].BOOK_NAME %>' target="_blank">
                        <%=LIST_BOOK[i].BOOK_NAME%></a>
                </td>
                <td>
                    <del>¥<%=LIST_BOOK[i].MARKET_PRICE.Value.ToString("#")%></del>
                </td>
                <td>
                    <span class="orange">¥<%=LIST_BOOK[i].LOCAL_PRICE.Value.ToString("#")%></span>
                </td>
                <td>
                    <span>
                        <%=GetBookPayType(LIST_BOOK[i].NJL_CS_BOOK_PAY_TYPE_CODE)%><a href="/CompanyOrder.aspx?id=<%=Request.QueryString["id"]%>&bid=<%=LIST_BOOK[i].ID%>"
                            target="_blank" class="ding" style="cursor: pointer"></a></span>
                </td>
            </tr>
            <%
    }
            %>
        </table>
    </div>
</div>
<%
    if(LIST_BOOK.Count==0)
    {
%>
<div class="blank"></div>
<div>
    <img id="opendingpiao" src="/Images/kaitong.jpg" alt="点击查看联系方式" title="点击查看联系方式" style="cursor:pointer" />
</div>
<div id="blk9dingpiao" class="blk" style="width:500px; height:200px;">
    <div class="popup_title">
        <span class="float_r"><a href="javascript:void(0)" id="close9dingpiao">关闭</a></span>
        <ul>
            <li class="now"><a target="main">联系方式</a> </li>
        </ul>
    </div>
    <div class="popup_main linkpop">
            <p class="font14">
                <strong>联系电话：</strong><span class="orange"><%=MODEL_BASE.WEBSITE_CONTACT_TEL%></span>&nbsp;<span><%=MODEL_BASE.WEBSITE_CONTACT%></span>
            </p>
            <p  class="font14"><strong>在线QQ：</strong><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<%=MODEL_BASE.WEBSITE_CONTACT_QQ %>&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<%=MODEL_BASE.WEBSITE_CONTACT_QQ %>:41" alt="点击这里给我发消息" title="点击这里给我发消息" align="absmiddle"/></a></p>
            <p  class="font14"><strong>邮箱：</strong><a href="mailto:<%=MODEL_BASE.WEBSITE_CONTACT_EMAIL%>"><strong><%=MODEL_BASE.WEBSITE_CONTACT_EMAIL%></strong></a></p>
            <p class="gray center">
                <%=MODEL_BASE.WEBSITE_CONTACT_INTRO%>
            </p>
   </div>
    
</div>
<script type="text/javascript">
    //示例9，综合效果
    var dingpiao = new PopupLayer({ trigger: "#opendingpiao", popupBlk: "#blk9dingpiao", closeBtn: "#close9dingpiao", useOverlay: true, useFx: true,
        offsets: {
            x: 0,
            y: -41
        }
    });
    dingpiao.doEffects = function (way) {
        if (way == "open") {
            this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                this.popupLayer.animate({
                    left: ($(document).width() - this.popupLayer.width()) / 2,
                    top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                    opacity: 0.8
                }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
            } .binding(this));
           // document.getElementById('Logindingpiao').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
        }
        else {
            this.popupLayer.animate({
                left: this.trigger.offset().left,
                top: this.trigger.offset().top,
                opacity: 0.1
            }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
        }
    }

</script>
<%
    }
 %>



